From de283259596799d76405e0b90facc17bd5a9850b Mon Sep 17 00:00:00 2001 From: Tor Lillqvist Date: Sat, 12 Nov 2005 01:12:08 +0000 Subject: [PATCH] Don't hide dotfiles, no such convention on Win32. Just hide files with the 2005-11-12 Tor Lillqvist * gtk/gtkfilesystemwin32.c (filename_get_info): Don't hide dotfiles, no such convention on Win32. Just hide files with the hidden attribute. (#314627) --- ChangeLog | 6 ++++++ ChangeLog.pre-2-10 | 6 ++++++ gtk/gtkfilesystemwin32.c | 4 +--- 3 files changed, 13 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index 34f7f4d15c..1098082244 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2005-11-12 Tor Lillqvist + + * gtk/gtkfilesystemwin32.c (filename_get_info): Don't hide + dotfiles, no such convention on Win32. Just hide files with the + hidden attribute. (#314627) + 2005-11-11 Federico Mena Quintero * gtk/gtkfilechooserdefault.c (shortcuts_insert_path): Do not diff --git a/ChangeLog.pre-2-10 b/ChangeLog.pre-2-10 index 34f7f4d15c..1098082244 100644 --- a/ChangeLog.pre-2-10 +++ b/ChangeLog.pre-2-10 @@ -1,3 +1,9 @@ +2005-11-12 Tor Lillqvist + + * gtk/gtkfilesystemwin32.c (filename_get_info): Don't hide + dotfiles, no such convention on Win32. Just hide files with the + hidden attribute. (#314627) + 2005-11-11 Federico Mena Quintero * gtk/gtkfilechooserdefault.c (shortcuts_insert_path): Do not diff --git a/gtk/gtkfilesystemwin32.c b/gtk/gtkfilesystemwin32.c index 523159491d..a8d5cc27f3 100644 --- a/gtk/gtkfilesystemwin32.c +++ b/gtk/gtkfilesystemwin32.c @@ -1525,9 +1525,7 @@ filename_get_info (const gchar *filename, if (types & GTK_FILE_INFO_IS_HIDDEN) { - /* Unix dot convention or the Windows hidden attribute */ - gboolean is_hidden = basename[0] == '.' || - !!(wfad.dwFileAttributes & FILE_ATTRIBUTE_HIDDEN); + gboolean is_hidden = !!(wfad.dwFileAttributes & FILE_ATTRIBUTE_HIDDEN); gtk_file_info_set_is_hidden (info, is_hidden); } -- 2.30.2